<?php
require_once "admin/lib/class.trangchu.php";
$ado = new trangchu;
include "seo/seo.php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title><?php echo $title; ?></title>            
            <meta http-equiv="content-language" content="vi">
                <meta name="description" content="<?php echo $metaD; ?>">
                    <meta name="keywords" content="<?php echo $metaK; ?>">    
                        <base href="http://<?php echo $_SERVER['SERVER_NAME'] ?>/ado/" />
                        <meta name="robots" content="index,follow">

                            <link rel="stylesheet" type="text/css" href="static/default.css">
                                <link rel="stylesheet" type="text/css" href="static/content.css"> 
                                    <script type="text/javascript" src="static/jquerymin.js"></script>
                                    <link rel="stylesheet" type="text/css" href="static/nivo.css"/>
                                    <link rel="stylesheet" type="text/css" href="static/nivo-slider.css"/>
                                    <link rel="stylesheet" href="css/mainstyle.css"  type="text/css" />
                                    <link rel="stylesheet" href="css/tip.css"  type="text/css" />
                                    <script language="javascript" type="text/javascript" src="js/thuvien.js"></script> 
                                    
                                    <script type="text/javascript" src="static/slider.js"></script>                                  
                                    <script type="text/javascript" src="js/tip.js"></script>

                                    <script type="text/javascript">
                                        $(document).ready(function () {        
                                            $('#slider').nivoSlider();                                         
                                            $('.theloai').click(function(){
                                                $(this).parent().find('a').toggle();
                                            });
                                        });

                                    </script>   
                                    </head>
                                    <body>                                        
                                        <div id="mega-wrapper">
                                            <div id="mega-header" >           

                                                <div style="height:120px;text-align:center;"><img src="images/banner.jpg" width="974" height="120" alt="Công ty TNHH TMDV Đạt Chí" /></div>
                                                <?php include "blocks/main_menu.php"; ?>
                                            </div>
                                            <div class="ClearItems"></div>
                                            <div id="mega-content">

                                                <div class="topbanner">
                                                    <?php if ($mod == "") { ?>
                                                        <div class="slider-wrapper theme-default">
                                                            <div id="slider" class="nivoSlider">
                                                                <img src="images/slide/4.jpg" data-thumb="images/slide/4.jpg" alt=""  />
                                                                <img src="images/slide/2.jpg" data-thumb="images/slide/2.jpg" alt=""  />
                                                                <img src="images/slide/3.jpg" data-thumb="images/slide/3.jpg" alt="" />
                                                                <img src="images/slide/1.jpg" data-thumb="images/slide/1.jpg" alt="" />
                                                                <img src="images/slide/5.jpg" data-thumb="images/slide/5.jpg" alt="" />
                                                            </div>                  
                                                        </div>
                                                    <?php } ?>
                                                    <div class="lst_txt">
                                                        <span class="redtext">Hotline: </span>&nbsp;0913.618.880
                                                    </div>
                                                </div>

                                                <div id="left-col">                

                                                    <?php include "blocks/menu.php"; ?>



                                                    <?php include "blocks/ads.php"; ?>
                                                    <?php include "blocks/tygia.php"; ?>

                                                </div>

                                                <div id="right-col">
                                                    <?php
                                                    if ($mod == "") {
                                                        include "blocks/hot.php";

                                                        include "blocks/camera.php";
                                                    }
                                                    if ($mod == 'detail') {
                                                        include "page/detail.php";
                                                    }
                                                    if ($mod == 'detail_kt') {
                                                        include "page/detail_kt.php";
                                                    }
                                                    if ($mod == 'cat') {
                                                        include "page/cat.php";
                                                    }
                                                    if ($mod == 'gioi-thieu') {
                                                        include "page/about.php";
                                                    }
                                                    if ($mod == 'san-pham') {
                                                        include "page/product.php";
                                                    }
                                                    if ($mod == 'khuyen-mai') {
                                                        include "page/khuyenmai.php";
                                                    }
                                                    if ($mod == 'lien-he') {
                                                        include "page/contact.php";
                                                    }
                                                    if ($mod == 'ho-tro') {
                                                        include "page/hotro.php";
                                                    }
                                                    ?>

                                                </div>
<?php if ($mod != 'detail_kt') { ?>
                                                    <div id="right">               
                                                    <?php include "blocks/support.php"; ?>
                                                    </div>
                                                    <?php } ?>

                                                <br class="ClearItems" />           

                                            </div>
                                            <div class="ClearItems"></div>        
                                            <div id="mega-footer">
<?php include "blocks/footer.php"; ?>            
                                            </div>
                                        </div>
                                    </body>
                                    </html>